<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />
<style>
#star2 img{ display:inline}
.star_all {width:150px; float: left;}
</style>

</head>

<body>
<a name="top"id="top"></a>
	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>订单管理</a></li>
	<li><a>订单详情</a></li>
	<li><a onClick="javascript:history.back(-1);">返回</a></li>
	</ul>
	</div>

	<div class="formbody">

	<div class="formtitle"><span>订单详情</span></div>
	<ul class="forminfo">
	<?php if(!empty($orderdata['audio_link'])){?>
	<li><label>交付的音频</label>
	<label><audio src="<?php echo $orderdata['audio_link'];?>" controls="controls">您的浏览器不支持 audio 标签。</audio></label><i></i>
	<?php if(!empty($orderdata['wav_link'])){?>
	<li><label>交付的WAV</label>
	<label style="width: 160px;"><?php echo $orderdata['wav_time'];?>秒——<a href="http://audio.heardtech.com/<?php echo $orderdata['wav_link'];?>">WAV</a></label><i></i>
	<?php }?>
	</li>
	<?php }?>
	<li>
	<label>自媒体</label>

	<label>{$orderdata['mname']}</label>
	</li>
	<li>
	<form id="formid" name="form1" method="post" action="{:U('/Home/Order/edit_order')}" >
	<!-- <input name="oid" id="oid" type="hidden" value="<?php echo $orderdata['id'];?>" />
	<div style="width: 86px;line-height: 34px;display: block;float: left;">专辑</div>
	<div style="float: left;">
	<select name="special" id="special" >
		<option value="0" <?php if($orderdata['specialname'] == 0){echo "selected";}?>>不选择专辑</option>
		<?php foreach ($specialdata as $key => $value) { ?>
		<option value="<?php echo $value['id'];?>" <?php if($orderdata['special'] == $value['id']){echo "selected";}?>><?php echo $value['specialname'];?></option>
		<?php }?>
	</select>
	</div>
	<div style=" margin-left:10px;float: left;"><input type="submit" class="btn" value="确认修改专辑"/></div> -->
	<div style="width: 86px;line-height: 34px;display: block;float: left;">专辑</div>
	<div style="float: left;">
	<input name="uuid" id="uuid" type="hidden" value="<?php echo $orderdata['uuid'];?>" />
	<input name="userleabl" id="userleabl" type="text" class="lginput" value="" />
	<div style=" margin-left:10px;float: left;"><input type="submit" class="btn" value="确认"/></div>
	</div>
	</form>
	</li>
	<li>
	<label>类型</label>
	<label>
		<switch name="orderdata['category']" >
		<case value="1">讲述类</case>
		<case value="2">情感类</case>
		<case value="3">演绎类</case>
		<case value="4">新闻类</case>
		<case value="5">英文类</case>
		<default />未知
		</switch>
	</label>
	</li>
	<li>
	<label>性别</label>
	<label><input name="sex" type="radio" value="0" disabled="disabled" <?php if($orderdata['sex']==0){echo "checked='checked'";}?> />全部</label>
	<label><input name="sex" type="radio" value="1" disabled="disabled" <?php if($orderdata['sex']==1){echo "checked='checked'";}?> />男</label>
	<label><input name="sex" type="radio" value="2" disabled="disabled" <?php if($orderdata['sex']==2){echo "checked='checked'";}?> />女</label>
	</li>
	<li><label>语速</label>
		<label><input name="speed" type="radio" value="1" disabled="disabled" <?php if($orderdata['speed']==1){echo "checked='checked'";}?> />正常</label>
		<label><input name="speed" type="radio" value="2" disabled="disabled" <?php if($orderdata['speed']==2){echo "checked='checked'";}?> />快</label>
		<label><input name="speed" type="radio" value="3" disabled="disabled" <?php if($orderdata['speed']==3){echo "checked='checked'";}?> />慢</label>
	</li>
	<li><label>标题是否朗读</label>
		<label><input name="is_read_title" type="radio" value="1" disabled="disabled" <?php if($orderdata['is_read_title']==1){echo "checked='checked'";}?> />是</label>
		<label><input name="is_read_title" type="radio" value="0" disabled="disabled" <?php if($orderdata['is_read_title']==0){echo "checked='checked'";}?> />否</label>
	</li>
	<li><label>标题</label>
	<label style="width: 800px;">{$orderdata['title']}</label>
	</li>
	<form id="formid" name="form1" method="post" action="{:U('/Home/Order/editarticle')}" >
	<li><label>文章</label>
	<textarea style="float: left;" name="article" id="article" onkeyup="cal_words()">{$articledata}</textarea><i></i>
	</li>
	<li>
	<label style="width: 120px;">总字数<i id="num">{$orderdata['words']}</i>个</label>
	<label style="width: 120px;">预计用时<i id="ptime">{$orderdata['plantime']}</i>分</label>
	<label style="width: 200px;">交付时间<i id="ptime">{$orderdata['endtime']}</i>分</label>
	<label style="width: 120px;">主播收益<i id="cost">{$orderdata['user_money']}</i>元</label>
	<label style="width: 120px;">客户支付<i id="cost">{$orderdata['media_money']}元</i></label>
	</li>
	<li><label>主播等级</label>
	<label><?php if($orderdata['is_collect']){echo "收藏主播";}?></label>
	<label style="width: 150px;">等级：
		<?php foreach ($leveldata as $key => $value) { ?>
		<?php if($value['id']==$orderdata['level']){echo $value['message'];}?>
		<?php }?>
	级</label>
	</li>
	<input name="oid" id="oid" type="hidden" value="<?php echo $orderdata['id'];?>" />
	<!-- <li><label>&nbsp;</label></li><li><div style=" margin-left:10px;float: left;"><input type="submit" class="btn" value="修改"/></div></li> -->
	</form>
	<li><a href="#top"target="_self">返回顶部</a><label>&nbsp;</label><label>&nbsp;</label></li><li><label>&nbsp;</label><label>&nbsp;</label></li>
	</ul>

	</div>

</body>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/ueditor/lang/zh-cn/zh-cn.js"></script>
<!-- 评价 -->
<script src="__PUBLIC__/admin/Js/jquery.raty.js" type="text/javascript"></script>
<!-- 评价 -->
<script type="text/javascript">
var editor = UE.getEditor('article',{    //content为要编辑的textarea的id
	initialFrameWidth: 800,   //初始化宽度
	initialFrameHeight: 200,   //初始化高度
});
</script>
<script>
$(function() {
	$('#special').comboSelect();
});
</script>
<script type="text/javascript">

rat('star1','result1',10);
rat('star2','result2',1);
function rat(star,result,m){

  star= '#' + star;
  result= '#' + result;
  $(result).hide();//将结果DIV隐藏

  $(star).raty({
    hints: ['1','2', '3', '4', '5'],
    path: "/Public/admin/Js",
    starOff: 'star-off-big.png',
    starOn: 'star-on-big.png',
    size: 24,
    start: 40,
    showHalf: true,
    target: result,
    targetKeep : true,//targetKeep 属性设置为true，用户的选择值才会被保持在目标DIV中，否则只是鼠标悬停时有值，而鼠标离开后这个值就会消失
    click: function (score, evt) {
      //第一种方式：直接取值
      //alert('你的评分是'+score*m+'分');
    }
  });

  //第二种方式可以设置一个隐蔽的HTML元素来保存用户的选择值，然后可以在脚本里面通过jQuery选中这个元素来处理该值。 弹出结果
  var text = $(result).text();
  $('img').click(function () {
    if ($(result).text() != text) {
      // alert($(result).text()/m);
      var score = $(result).text()/m;
      $('#score').val(score);
      return;
    }
  });
}
</script>
</html>
